<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<?php
  $arr1=[22,11,33,44,55];
  $sum=0;
  for($i=0;$i<count($arr1);$i++){
      $sum+=$arr1[$i];
  }
  echo '数组的平均数为：'.$sum/count($arr1).'<br>总和为'.$sum;
?>
</html>